package com.ruoyi.client.service.impl;

import com.ruoyi.client.domain.Commission;
import com.ruoyi.client.domain.CommissionYes;
import com.ruoyi.client.mapper.CommissionYesMapper;
import com.ruoyi.client.service.ICommissionYesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommissionYesServiceImpl implements ICommissionYesService {
    @Autowired
    private CommissionYesMapper commissionYesMapper;
    @Override
    public CommissionYes getCommissionBySymbolAndPrice(String symbol, String buyPrice, Integer id) {
        return commissionYesMapper.getCommissionBySymbolAndPrice(symbol,buyPrice,id);
    }

    @Override
    public void add(CommissionYes commissionYes) {
        commissionYesMapper.add(commissionYes);
    }

    @Override
    public void updateNumById(Integer num, Integer id) {
        commissionYesMapper.updateNumById(num,id);
    }

    @Override
    public CommissionYes getCommissionBySymbolAndPriceSell(String symbol, String buyPrice, Integer id) {
        return commissionYesMapper.getCommissionBySymbolAndPriceSell(symbol,buyPrice,id);
    }

    @Override
    public List<CommissionYes> successEntrustList(Long userId) {
        return commissionYesMapper.successEntrustList(userId);
    }
}
